import { FC } from "react";
import EventItem from "./EventItem";
interface EventListProps {
  items: any;
}
const EventList: FC<EventListProps> = ({ items }) => {
  return (
    <ul>
      {items.map((event: any) => (
        <EventItem key={event.id} props={event}></EventItem>
      ))}
    </ul>
  );
};
export default EventList;
